<include file="Public:header"/>


        <!--body wrapper start-->
        <div class="wrapper">
             <div class="row">
                <div class="col-sm-12">
                <section class="panel">
                <header class="panel-heading">
                    规则列表
                    <!--<span class="tools pull-right">
                        <a href="javascript:;" class="fa fa-chevron-down"></a>
                        <a href="javascript:;" class="fa fa-times"></a>
					</span>-->
                </header>
                <div class="panel-body">
                <div class="adv-table editable-table ">
                <div class="clearfix">
                    <div class="btn-group">
						<!--<a href="#addmyModal" data-toggle="modal" >-->
						<a href="{:U('News/getArticles_edit')}">
							<button class="btn btn-primary ">
								添加 <i class="fa fa-plus"></i>
							</button>
                        </a>

                    </div>
                    <!--<div class="btn-group pull-right">
                        <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">Tools <i class="fa fa-angle-down"></i>
                        </button>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="#">Export to Excel</a></li>
                        </ul>
                    </div>-->
                </div>
                <div class="space15"></div>
                <table class="table table-striped table-hover table-bordered" id="editable-sample">
                <thead>
                <tr>
					<th>序号</th>
					<th>ID</th>
					<th>标题</th>
					<th>阅读数</th>
					<th>修改时间</th>
                    <th>所属分类</th>
					<th>所属游戏</th>
					<th>操作</th>
                </tr>
                </thead>
                <tbody>
					<volist name="list" id="l" key="i">
						<tr class="">
							<td>{$i}</td>
							<td>{$l.id}</td>
							<td>{$l.title}</td>
							<td>{$l.readtimes}</td>
							<td>{$l.ctime|date='Y-m-d H:i:s',###}</td>
                            <td>{$l.fenlei.name}</td>
							<td>{$l.gametype.cnName}</td>
							<td>
								<!--<a class="tan_edit" data-toggle="modal" href="#bianjibox{$l.sys_artId}">编辑</a>-->
								<a href="{:U('News/getArticles_edit',array(id=>$l[id]))}">编辑</a>
								|
								<php>
								if($l['state']==1){
								</php>
									<a href="javascript:;" onclick="del_admin({$l.id},'article',this,'id')">删除</a>
								<php>
								}else{
								</php>
									<a href="javascript:;" onclick="hui_admin({$l.id},'article',this,'id')">恢复</a>
									|
									<a href="javascript:;" class="cddel_admin_btn" onclick="cddel_admin({$l.id},'article',this,'id')">彻底删除</a>
								<php>
								}
								</php>
							</td>
						</tr>
					</volist>

                </tbody>
                </table>
                </div>
                </div>
                </section>
                </div>
                </div>
        </div>
        <!--body wrapper end-->

    </div>
    <!-- main content end-->
	
<include file="Public:footer"/>

